package com.yrot.admin.service;

import com.yrot.admin.entity.SysResult;
import com.baomidou.mybatisplus.extension.service.IService;
import com.yrot.admin.form.ResultAccuracyJson;
import com.yrot.common.result.R;
import com.yrot.common.result.Result;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author hemin
 * @since 2019-04-02
 */
public interface ISysResultService extends IService<SysResult> {
    R submitSave(SysResult result,String answer);
    SysResult findResultToday(Integer trainId,String openId);
    Result getResultsByTrainId(int page, int limit,Integer trainId,String name,Integer isPass);

    /**
     * 通过tranId查询正确率和通过率
     */
    ResultAccuracyJson findAccuracy(Integer tranId);
}
